package com.mjh.zhujianju.enums;

/**
 * 会员状态
 * @author Administrator
 *
 */
public enum BuildingMeettingStatusEnum {
	 
	    no("0","未开始"),
	    ing("1","进行中"),
	    end("2","已结束");

	    private String code;
	    private String name;

	    public String getCode() {
	        return code;
	    }

	    public void setCode(String code) {
	        this.code = code;
	    }

	    public String getName() {
	        return name;
	    }

	    public void setName(String name) {
	        this.name = name;
	    }

	    BuildingMeettingStatusEnum(String code, String name) {
	        this.code = code;
	        this.name = name;
	    }

	    public static BuildingMeetingEnum[] getEnums(){
	        return BuildingMeetingEnum.values();
	    }

	    public static String getName(String code){
	        if(code == null){
	            return null;
	        }

	        for (BuildingMeettingStatusEnum buildingMeetingEnum : BuildingMeettingStatusEnum.values()){
	            if(code.equals(buildingMeetingEnum.getCode())){
	                return buildingMeetingEnum.getName();
	            }
	        }

	        return null;
	    }
}
